#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxushort(ushort value)
{
	System_UInt16 *box = new(,System_UInt16);
	box->m_value = value;
	return (System_Object *)box;
}

internal ushort ___unboxushort(System_Object *value)
{
	return ((System_UInt16 *)value)->m_value;
}

//+ type
Implement_Type(System_UInt16,System_Object,)
Implement_DefaultCtor(System_UInt16,System_Object)
System_Type _ushortType = { (__typeCtor)null, L"ushort", (__typeBoxer)&___boxushort, (__typeUnboxer)&___unboxushort, (char*)default(ushort), _TypeFlags_Value };
Declare_System(System_UInt16, ushort)
Implement_System(System_UInt16, ushort)